package Member_Message;

import java.util.Calendar;

public class My_Date implements java.io.Serializable {
    private int year;
    private int month;
    private int day;

    My_Date(){
        Calendar now = Calendar.getInstance();
        this.year = now.get(Calendar.YEAR);
        this.month = now.get(Calendar.MONTH);
        this.day = now.get(Calendar.DAY_OF_MONTH);
    }
    My_Date(int year, int month, int day){
        this.year = year;
        this.month = month;
        this.day = day;
    }
    public String toString(){
        return year + ". " + month + ". " + day;
    }
}
